package cn.mux.jdk8.arrays;

import java.util.Arrays;


public class TestLambdaArray {
	public static void main(String[] args) {
		String[] arr1 = {"java","php","android","iphone","javascript"};
		//对数组并发排序
		Arrays.parallelSort(arr1,(o1,o2)->o1.length()-o2.length());
		int[] arr2 = {3,-4,25,16,30,18};
		Arrays.parallelPrefix(arr2,(left,right)->left*right);
		
	}
}
